package com.sh.data.engine.application.model.dto.datadev;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author：jingchen.hr
 * @descripion:
 * @data:10/29/202111:08 AM
 */
@Data
@Schema
public class OfflineDevOperationJobResponse {

    @Schema(description = "执行记录id")
    private Long id;

    @Schema(description = "任务id")
    private Long nodeId;

    @Schema(description = "任务名")
    private String nodeName;

    @Schema(description = "状态 1-未运行 2-运行中 3-成功 4-失败 5-停止 6-部分失败")
    private Integer status;

    @Schema(description = "0-手工执行 1-周期执行")
    private Integer execType;

    @Schema(description = "业务日期")
    private Date businessTime;

    @Schema(description = "计划开始时间")
    private Date planTime;

    @Schema(description = "开始时间")
    private Date startTime;

    @Schema(description = "结束时间")
    private Date endTime;

    @Schema(description = "耗时，单位：秒")
    private long time;

    @Schema(description = "子节点")
    private boolean haveChildren;

    @Schema(description = "是否可以重跑")
    private Boolean canReRun = false;

    @Schema(description = "是否关注,0-未关注 1-已关注")
    private Integer isAttention;

    @Schema(description = "责任人")
    private String userName;

    @Schema(description = "taskFlowJobId")
    private String taskFlowJobId;

    @Schema(description = "0-月 1-周 2-天 3-小时 4-分钟")
    private Integer cycle;

    @Schema(description = "hoveIno")
    private String scheduleInfo;

    private Integer nodeType;

    @Schema(description = "1 -以忽略")
    private Integer ignored;
}
